<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:76:"D:\wamp\www\A1-project\tp5\public/../application/index\view\Index\index.html";i:1527777972;s:72:"D:\wamp\www\A1-project\tp5\application\index\view\HomePublic\public.html";i:1527694960;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
  <title>爱上零食屋官网</title> 
  <link href="/static/home/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" /> 
  <link href="/static/home/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" /> 
  <link href="/static/home/basic/css/demo.css" rel="stylesheet" type="text/css" /> 
  <link href="/static/home/css/hmstyle.css" rel="stylesheet" type="text/css" /> 
  <link href="/static/home/css/skin.css" rel="stylesheet" type="text/css" /> 
  <script src="/static/home/AmazeUI-2.4.2/assets/js/jquery.min.js"></script> 
  <script src="/static/home/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script> 
 </head> 
 <body>
<!-- <head> -->
 <div class="hmtop"> 
   <!--顶部导航条 --> 
   <div class="am-container header"> 
    <ul class="message-r"> 
     <div class="topMessage home"> 
      <div class="menu-hd">
       <a href="#" target="_top" class="h">商城首页</a>
      </div> 
     </div> 
     <div class="topMessage my-shangcheng"> 
      <div class="menu-hd MyShangcheng">
       <a href="#" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a>
      </div> 
     </div> 
     <div class="topMessage mini-cart"> 
      <div class="menu-hd">
       <a id="mc-menu-hd" href="#" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a>
      </div> 
     </div> 
     <div class="topMessage favorite"> 
      <div class="menu-hd">
       <a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a>
      </div> 
     </div>
    </ul> 
   </div> 
   <!--悬浮搜索框--> 
   <div class="nav white"> 
    <!-- <div class="logo">
     <img src="/static/home/images/logo.png" />
    </div>  -->
    <div class="logoBig" style="position:relative;top:-15px;right:120px;"> 
     <li><img src="/static/home/images/aishang.png" /></li> 
    </div> 
    <div class="search-bar pr"> 
     <a name="index_none_header_sysc" href="#"></a> 
     <form action="/home/goods" method="post"> 
      <input id="searchInput" name="search" type="text" placeholder="搜索" autocomplete="off" /> 
      <input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit" /> 
     </form> 
    </div>
   </div> 
   <div class="clear"></div> 
  </div> 
  <div class="banner"> 
<!-- 显示轮播图 -->

  <!--轮播 --> 
   <div class="am-slider am-slider-default scoll" data-am-flexslider="" id="demo-slider-0"> 
    <ul class="am-slides">
    <?php if(is_array($carousel) || $carousel instanceof \think\Collection || $carousel instanceof \think\Paginator): if( count($carousel)==0 ) : echo "" ;else: foreach($carousel as $key=>$car): ?>
      <li class="banner1" style="background:#FFFFFF;"><a href="/home/index"><img src="\uploads\<?php echo $car['pic']; ?>" style="width:818px;height:404px;"/></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?> 
    </ul>
  </div> 
  <div class="clear"></div>  
 
   <div class="clear"></div> 
  </div> 
  <div class="shopNav"> 
   <div class="slideall"> 
    <div class="long-title">
     <span class="all-goods">全部分类</span>
    </div> 
    <div class="nav-cont"> 
     <ul> 
      <li class="index"><a href="/home/index">首页</a></li>
  <?php if(is_array($brand) || $brand instanceof \think\Collection || $brand instanceof \think\Paginator): if( count($brand)==0 ) : echo "" ;else: foreach($brand as $key=>$bra): ?>
      <li class="qc"><a href="/home/brand/id/<?php echo $bra['id']; ?>"><?php echo $bra['brand']; ?></a></li>
  <?php endforeach; endif; else: echo "" ;endif; ?>
      <!-- <li class="qc"><a href="#">闪购</a></li> 
      <li class="qc"><a href="#">限时抢</a></li> 
      <li class="qc"><a href="#">团购</a></li> 
      <li class="qc last"><a href="#">大包装</a></li>  -->
     </ul> 
     <div class="nav-extra"> 
      <i class="am-icon-user-secret am-icon-md nav-user"></i>
      <b></b>我的福利 
      <i class="am-icon-angle-right" style="padding-left: 10px;"></i> 
     </div> 
    </div>
<!-- </head> -->

<!-- content开始 -->

 <body> 
  
   
    <!--侧边导航 --> 
    <div id="nav" class="navfull"> 
     <div class="area clearfix"> 
      <div class="category-content" id="guide_2"> 
       <div class="category">
        <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): if( count($cate)==0 ) : echo "" ;else: foreach($cate as $key=>$row): ?>
        <ul class="category-list" id="js_climit_li"> 
         <li class="appliance js_toggle relative first"> 
         
          <div class="category-info"> 
           <h3 class="category-name b-category-name"><i><img src="/static/home/images/cake.png" /></i><a class="ml-22" title="点心"><?php echo $row['name']; ?></a></h3> 
           <em>&gt;</em>
          </div> 
          <div class="menu-item menu-in top"> 
           <div class="area-in"> 
            <div class="area-bg"> 
             <div class="menu-srot"> 
              <div class="sort-side"> 
              <?php if(is_array($row['shop']) || $row['shop'] instanceof \think\Collection || $row['shop'] instanceof \think\Paginator): if( count($row['shop'])==0 ) : echo "" ;else: foreach($row['shop'] as $key=>$rows): ?>
               <dl class="dl-sort"> 
                <dt>
                 <span title="蛋糕"><?php echo $rows['name']; ?></span>
                </dt> 
                <?php if(is_array($rows['shop']) || $rows['shop'] instanceof \think\Collection || $rows['shop'] instanceof \think\Paginator): if( count($rows['shop'])==0 ) : echo "" ;else: foreach($rows['shop'] as $key=>$rowss): ?>
                <dd>
                 <a title="蒸蛋糕" href="/home/category/id/<?php echo $rowss['id']; ?>"><span><?php echo $rowss['name']; ?></span></a>
                </dd> 
                <?php endforeach; endif; else: echo "" ;endif; ?>
               </dl> 
               <?php endforeach; endif; else: echo "" ;endif; ?>             </div> 
             </div> 
            </div> 
           </div> 
          </div> </li> 
        </ul>
         <?php endforeach; endif; else: echo "" ;endif; ?>
       </div> 
      </div>
     </div> 
    </div> 
    <!--轮播--> 
    <script type="text/javascript">
							(function() {
								$('.am-slider').flexslider();
							});
							$(document).ready(function() {
								$("li").hover(function() {
									$(".category-content .category-list li.first .menu-in").css("display", "none");
									$(".category-content .category-list li.first").removeClass("hover");
									$(this).addClass("hover");
									$(this).children("div.menu-in").css("display", "block")
								}, function() {
									$(this).removeClass("hover")
									$(this).children("div.menu-in").css("display", "none")
								});
							})
						</script> 
    <!--小导航 --> 
    <div class="am-g am-g-fixed smallnav"> 
     <div class="am-u-sm-3"> 
      <a href="sort.html"><img src="/static/home/images/navsmall.jpg" /> 
       <div class="title">
        商品分类
       </div> </a> 
     </div> 
     <div class="am-u-sm-3"> 
      <a href="#"><img src="/static/home/images/huismall.jpg" /> 
       <div class="title">
        大聚惠
       </div> </a> 
     </div> 
     <div class="am-u-sm-3"> 
      <a href="#"><img src="/static/home/images/mansmall.jpg" /> 
       <div class="title">
        个人中心
       </div> </a> 
     </div> 
     <div class="am-u-sm-3"> 
      <a href="#"><img src="/static/home/images/moneysmall.jpg" /> 
       <div class="title">
        投资理财
       </div> </a> 
     </div> 
    </div> 
    <!--走马灯 --> 
    <div class="marqueen" style="position:relative;top:2px;left:1000px;"> 
     <span class="marqueen-title">商 城 公 告</span> 
     <div class="demo"> 
      <ul>
      <?php if(is_array($notice) || $notice instanceof \think\Collection || $notice instanceof \think\Paginator): if( count($notice)==0 ) : echo "" ;else: foreach($notice as $key=>$not): ?> 
        <li class="title-first"><a target="_blank" href="/home/notice/id/<?php echo $not['id']; ?>"> <span>[公告]</span><?php echo $not['title']; ?></a></li>
      <?php endforeach; endif; else: echo "" ;endif; ?> 
       <!-- <li class="title-first"><a target="_blank" href="#"> <img src="/static/home/images/TJ2.jpg" /> <span>[特惠]</span>商城爆品1分秒 </a></li> --> 
       <!-- <li class="title-first"><a target="_blank" href="#"> <span>[公告]</span>商城与广州市签署战略合作协议 <img src="/static/home/images/TJ.jpg" /> <p>XXXXXXXXXXXXXXXXXX</p> </a></li>  -->
       <!-- <div class="mod-vip"> 
        <div class="m-baseinfo"> 
         <a href="/static/home/person/index.html"> <img src="/static/home/images/getAvatar.do.jpg" /> </a> 
         <em> Hi,<span class="s-name">小叮当</span> <a href="#"><p>点击更多优惠活动</p></a> </em> 
        </div> 
        <div class="member-logout"> 
         <a class="am-btn-warning btn" href="login.html">登录</a> 
         <a class="am-btn-warning btn" href="register.html">注册</a> 
        </div> 
        <div class="member-login"> 
         <a href="#"><strong>0</strong>待收货</a> 
         <a href="#"><strong>0</strong>待发货</a> 
         <a href="#"><strong>0</strong>待付款</a> 
         <a href="#"><strong>0</strong>待评价</a> 
        </div> 
        <div class="clear"></div> 
       </div>  -->
       <!-- <li><a target="_blank" href="#"><span>[特惠]</span>洋河年末大促，低至两件五折</a></li> 
       <li><a target="_blank" href="#"><span>[公告]</span>华北、华中部分地区配送延迟</a></li> 
       <li><a target="_blank" href="#"><span>[特惠]</span>家电狂欢千亿礼券 买1送1！</a></li>  -->
      </ul> 
      <div class="advTip">
       <img src="/static/home/images/advTip.jpg" />
      </div> 
     </div> 
    </div> 
    <div class="clear"></div> 
   </div> 
   <script type="text/javascript">
					if ($(window).width() < 640) {
						function autoScroll(obj) {
							$(obj).find("ul").animate({
								marginTop: "-39px"
							}, 500, function() {
								$(this).css({
									marginTop: "0px"
								}).find("li:first").appendTo(this);
							})
						}
						$(function() {
							setInterval('autoScroll(".demo")', 3000);
						})
					}
				</script> 
  </div> 
  <div class="shopMainbg" > 
   <div class="shopMain" id="shopmain"> 
    <!--今日推荐 -->
    <div id="hidden">
      <div style="width:110px;position:relative;top:-25px;left:15px;cursor:pointer;" id="advert">关闭广告</div>
      <?php if(is_array($advert) || $advert instanceof \think\Collection || $advert instanceof \think\Paginator): if( count($advert)==0 ) : echo "" ;else: foreach($advert as $key=>$adv): ?> 
       <div class="am-u-sm-4 am-u-lg-3 "> 
        <div class="recommendationMain one">
         <a href="<?php echo $adv['url']; ?>" target="_black">
         <img src="/uploads/<?php echo $adv['pic']; ?>"  style="width:275px;height:150px;"/>
         </a> 
        </div> 
       </div>
       <?php endforeach; endif; else: echo "" ;endif; ?>
      <div class="clear "></div>
    </div>
<!-- 点击隐藏广告 -->
<script>
  $("#advert").click(function(){
    $("#hidden").hide(1000);
});
</script> 
<!--商品列表-->
<?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): if( count($cate)==0 ) : echo "" ;else: foreach($cate as $key=>$cat): if(!empty($cat['shop'][0]['shop'][0])): ?>
<div id="f1">
     <div class="am-container "> 
      <div class="shopTitle "> 
       <h4><?php echo $cat['name']; ?></h4> 
       <div class="today-brands">
    <?php if(is_array($cat['shop']) || $cat['shop'] instanceof \think\Collection || $cat['shop'] instanceof \think\Paginator): if( count($cat['shop'])==0 ) : echo "" ;else: foreach($cat['shop'] as $key=>$cats): if(is_array($cats['shop']) || $cats['shop'] instanceof \think\Collection || $cats['shop'] instanceof \think\Paginator): if( count($cats['shop'])==0 ) : echo "" ;else: foreach($cats['shop'] as $key=>$catss): ?> 
        <a href="#" class="catss" cid="<?php echo $catss['id']; ?>" name="<?php echo $cat['id']; ?>"><?php echo $catss['name']; ?></a>
       <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?> 
       </div> 
       <span class="more "> <a href="# ">更多美味<i class="am-icon-angle-right" style="padding-left:10px ;"></i></a> </span> 
      </div> 
     </div>

     <div class="am-g am-g-fixed floodFour">
<!-- 遍历商品 -->
  <?php if(is_array($goods) || $goods instanceof \think\Collection || $goods instanceof \think\Paginator): if( count($goods)==0 ) : echo "" ;else: foreach($goods as $key=>$goo): if($cat['id']==$goo['cate_id']): ?>
<div class="uid<?php echo $cat['id']; ?>">
      <div class="am-u-sm-3 am-u-md-2 text-three big display" style="border:1px solid #EEEEEE;float:left;"> 
       <div class="outer-con "> 
        <div class="title " style="font-size:20px;">
          <?php echo $goo['name']; ?> 
        </div><br> 
        <div class="sub-title " style="font-size:15px;color:#E71939;">
          &yen; <?php echo $goo['price']; ?>.00 
        </div> 
        <a href="/goodsinfo/index/id/<?php echo $goo['id']; ?>"><i class="am-icon-shopping-basket am-icon-md  seprate"></i></a>  
       </div> 
       <a href="/goodsinfo/index/id/<?php echo $goo['id']; ?>"><img src="/uploads/<?php echo $goo['pic']; ?>" style="width:196px;height:196px;"/></a> 
      </div>
</div> 
<?php endif; endforeach; endif; else: echo "" ;endif; ?> 
     </div>  
     <div class="clear "></div>
    </div>
<?php endif; endforeach; endif; else: echo "" ;endif; ?>
<script>
  // $(".catss").mouseover(function(){
  //   //获取一级分类id
  //   cid=$(this).attr('cid');
  //   name=$(this).attr('name');
  //   $.get("/home/index",{cid:cid},function(data){
  //     // alert(data);
  //     //清空子元素
  //     $(".uid"+name).children().remove();
  //     for(var i=0;i<data.length;i++){
  //       $(".display").find(".title").html(data[i].pname);
  //       $(".display").find(".sub-title").html("&yen;"+data[i].price+".00");
  //       div=$(".display").html();

  //       $(".uid"+name).append(div);
  //     }
  //   },'json');
  // });

</script> 
  <!--引导 --> 
  <div class="navCir"> 
   <li class="active"><a href="home.html"><i class="am-icon-home "></i>首页</a></li> 
   <li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li> 
   <li><a href="shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li> 
   <li><a href="/static/home/person/index.html"><i class="am-icon-user"></i>我的</a></li> 
  </div> 
  <!--菜单 --> 
  <div class="tip"> 
   <div id="sidebar"> 
    <div id="wrap"> 
     <div id="prof" class="item "> 
      <a href="# "> <span class="setting "></span> </a>

      <div class="ibar_login_box status_login "> 
       <?php if(\think\Session::get('tel')==null): ?>
       <div class="avatar_box "> 
        <p class="avatar_imgbox "><img src="/static/home/images/getAvatar.do.jpg " /></p>
        <ul class="user_info ">
        <li>&nbsp;</li> 
         <li>请登录或注册本网站 !</li> 
        </ul> 
       </div> 
       <div class="login_btnbox "> 
        <div class="member-logout"> 
         <a class="am-btn-warning btn" href="/homelogin/login">登录</a> 
         <a class="am-btn-warning btn" href="/homeregister/register">注册</a> 
        </div>
       </div>
       <?php else: ?>
        <div class="avatar_box "> 
        <p class="avatar_imgbox "><img src="/static/home/images/getAvatar.do.jpg " /></p>
        <ul class="user_info ">
          <li>&nbsp;</li> 
          <li>欢迎<?php echo \think\Session::get('tel'); ?>光临本网站</li>
        </ul>
        </div> 
        <div class="login_btnbox "> 
          <div class="member-logout"> 
            <a class="am-btn-warning btn" href="/homelogin/loginout">退出登录</a>
          </div>
        </div>
        <?php endif; ?> 
       <i class="icon_arrow_white "></i> 
      </div> 
      <!-- <div class="ibar_login_box status_login "> 
       <div class="avatar_box "> 
        <p class="avatar_imgbox "><img src="/static/home/images/no-img_mid_.jpg " /></p> 
        <ul class="user_info "> 
         <li>用户名sl1903</li> 
         <li>级&nbsp;别普通会员</li> 
        </ul> 
       </div> 
       <div class="login_btnbox "> 
        <a href="# " class="login_order ">我的订单</a> 
        <a href="# " class="login_favorite ">我的收藏</a> 
       </div> 
       <i class="icon_arrow_white "></i> 
      </div>  -->
     </div> 
     <div id="shopCart " class="item "> 
      <a href="# "> <span class="message "></span> </a> 
      <p> 购物车 </p> 
      <p class="cart_num ">0</p> 
     </div> 
     <div id="asset " class="item "> 
      <a href="# "> <span class="view "></span> </a> 
      <div class="mp_tooltip ">
        我的资产 
       <i class="icon_arrow_right_black "></i> 
      </div> 
     </div> 
     <div id="foot " class="item "> 
      <a href="# "> <span class="zuji "></span> </a> 
      <div class="mp_tooltip ">
        我的足迹 
       <i class="icon_arrow_right_black "></i> 
      </div> 
     </div> 
     <div id="brand " class="item "> 
      <a href="#"> <span class="wdsc "><img src="/static/home/images/wdsc.png " /></span> </a> 
      <div class="mp_tooltip ">
        我的收藏 
       <i class="icon_arrow_right_black "></i> 
      </div> 
     </div> 
     <div id="broadcast " class="item "> 
      <a href="# "> <span class="chongzhi "><img src="/static/home/images/chongzhi.png " /></span> </a> 
      <div class="mp_tooltip ">
        我要充值 
       <i class="icon_arrow_right_black "></i> 
      </div> 
     </div> 
     <div class="quick_toggle "> 
      <li class="qtitem "> <a href="# "><span class="kfzx "></span></a> 
       <div class="mp_tooltip ">
        客服中心
        <i class="icon_arrow_right_black "></i>
       </div> </li> 
      <!--二维码 --> 
      <li class="qtitem "> <a href="#none "><span class="mpbtn_qrcode "></span></a> 
       <div class="mp_qrcode " style="display:none; ">
        <img src="/static/home/images/weixin_code_145.png " />
        <i class="icon_arrow_white "></i>
       </div> </li> 
      <li class="qtitem "> <a href="#top " class="return_top "><span class="top "></span></a> </li> 
     </div> 
     <!--回到顶部 --> 
     <div id="quick_links_pop " class="quick_links_pop hide "></div> 
    </div> 
   </div> 
   <div id="prof-content " class="nav-content "> 
    <div class="nav-con-close "> 
     <i class="am-icon-angle-right am-icon-fw "></i> 
    </div> 
    <div>
      我 
    </div> 
   </div> 
   <div id="shopCart-content " class="nav-content "> 
    <div class="nav-con-close "> 
     <i class="am-icon-angle-right am-icon-fw "></i> 
    </div> 
    <div>
      购物车 
    </div> 
   </div> 
   <div id="asset-content " class="nav-content "> 
    <div class="nav-con-close "> 
     <i class="am-icon-angle-right am-icon-fw "></i> 
    </div> 
    <div>
      资产 
    </div> 
    <div class="ia-head-list "> 
     <a href="# " target="_blank " class="pl "> 
      <div class="num ">
       0
      </div> 
      <div class="text ">
       优惠券
      </div> </a> 
     <a href="# " target="_blank " class="pl "> 
      <div class="num ">
       0
      </div> 
      <div class="text ">
       红包
      </div> </a> 
     <a href="# " target="_blank " class="pl money "> 
      <div class="num ">
       ￥0
      </div> 
      <div class="text ">
       余额
      </div> </a> 
    </div> 
   </div> 
   <div id="foot-content " class="nav-content "> 
    <div class="nav-con-close "> 
     <i class="am-icon-angle-right am-icon-fw "></i> 
    </div> 
    <div>
      足迹 
    </div> 
   </div> 
   <div id="brand-content " class="nav-content "> 
    <div class="nav-con-close "> 
     <i class="am-icon-angle-right am-icon-fw "></i> 
    </div> 
    <div>
      收藏 
    </div> 
   </div> 
   <div id="broadcast-content " class="nav-content "> 
    <div class="nav-con-close "> 
     <i class="am-icon-angle-right am-icon-fw "></i> 
    </div> 
    <div>
      充值 
    </div> 
   </div> 
  </div> 
  <script>
			window.jQuery || document.write('<script src="basic/js/jquery.min.js "><\/script>');
		</script> 
  <script type="text/javascript " src="/static/home/basic/js/quick_links.js "></script>  

<!-- content结束 -->

<!-- <footer>  -->
<div class="footer "> 
     <div class="footer-hd "> 
      <p> 
          <span>友情链接</span> 
        <?php if(is_array($links) || $links instanceof \think\Collection || $links instanceof \think\Paginator): if( count($links)==0 ) : echo "" ;else: foreach($links as $key=>$links): ?>
          <a href="http://<?php echo $links['linksaddress']; ?>" target="_blank"><?php echo $links['linksname']; ?></a> <b>|</b>
        <?php endforeach; endif; else: echo "" ;endif; ?> 
      </p> 
     </div> 
     <div class="footer-bd "> 
      <p> <a href="# ">关于爱上零食屋</a>&nbsp&nbsp&nbsp&nbsp&nbsp 
      <a href="# ">合作伙伴</a>&nbsp&nbsp&nbsp&nbsp&nbsp  
      <a href="# ">联系我们</a></p> 
     </div> 
    </div> 
   </div> 
  </div> 
  <!--引导 --> 
  <div class="navCir"> 
   <li class="active"><a href="home.html"><i class="am-icon-home "></i>首页</a></li> 
   <li><a href="sort.html"><i class="am-icon-list"></i>分类</a></li> 
   <li><a href="shopcart.html"><i class="am-icon-shopping-basket"></i>购物车</a></li> 
   <li><a href="/static/home/person/index.html"><i class="am-icon-user"></i>我的</a></li> 
  </div> 
<!-- </footer> -->
 </body>
</html> 